package com.jiazhong.多态and转型.Test05;

public class Student extends Person{
    private double score;

    public Student(String name, int age,double score) {
        super(name, age);
        this.score=score;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String Say() {
        return "学生"+super.Say()+"score="+score;
    }

    public void study(){
        System.out.println("学生"+getName()+"正在学java...");
    }
}
